#include "notegen.h"

notegen::notegen()
{
}
notegen::notegen(track a,HMIDIOUT hdl)
{
    handle =hdl;
    cNote=0;
    trackNotes = a.trknotes;
}

void notegen::run()
{
    for(int i=0;i<trackNotes.size();i++)
    {
        usleep(trackNotes[i].deltaTime*1000);
        notetoplay(trackNotes[i].message);
    }
}
